import * as qrcode from 'qrcode'

export const toQrcode = async str => {
  const options = {
    //
    errorCorrectionLevel: 'L',
  }
  return qrcode.toDataURL(str, options)
}
